<?php
include('function.php');

if(isset($_GET['option'])){
	$option = $_GET['option'];	
	switch($option){
	case 'login': {
	   loadHeaderWithOption("Handy moby",'home.js');
	   loadBodyAndFooter("login/login.php");
	}
        
	break;
	case 'signup':{
        //loadHeaderWithOption("Handy moby",array('home.js','signup.js'));
        loadSignup();
	    //loadBodyAndFooter("login/signup.php");
	}
	break;
	case 'search':{
		loadHeaderWithOption("Handy moby",'home.js');
        loadBodyAndFooter("search/advancedsearch.php");
        }
	break;
	default:{
		loadHeaderWithOption("Handy moby",'home.js');
        loadBodyAndFooter("body.php");
        }
	break;
	}
}
else{
    loadHeaderWithOption("Handy moby",'home.js');
	loadBodyAndFooter("body.php","template/rightcolumn.php");
}

?>